﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using COMOSOFT.Class;

namespace COMOSOFT.JobManagement.Report
{
    public partial class JobStatisticReport : DevExpress.XtraReports.UI.XtraReport
    {
        ClassShare cls = new ClassShare("JobStatisticReport");
        public JobStatisticReport(DateTime FromDate,DateTime ToDate)
        {
            InitializeComponent();
            JobManagement.Dataset.DataSet_JobManagementTableAdapters.sp_JobStatisticTableAdapter adt = new Dataset.DataSet_JobManagementTableAdapters.sp_JobStatisticTableAdapter();
            adt.Fill(this.dataSet_JobManagement1.sp_JobStatistic, FromDate,ToDate);
        }

        private void ReportFooter_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            lable_Signature.Text = ClassShare.Usname;
        }
    }
}
